<template>
  <el-container>
    <el-header><EmpHead></EmpHead></el-header>
    <el-container>
      <el-aside width="200px"><EmpLeft @parentHandle="childHandle"></EmpLeft></el-aside>
      <el-container>
        <el-main><EmpMain ref="EmpMain"></EmpMain></el-main>
        <el-footer>Footer</el-footer>
      </el-container>
    </el-container>

  </el-container>
</template>

<script>

    export default {
        name: "PageContainer",
        methods:{
          childHandle(key,keyPath){
            //console.log("childhand,pagecontainer",key, keyPath);
            this.$refs.EmpMain.addTab(key,keyPath);
          }
        }
    }

</script>

<style scoped>

  .el-header,.el-footer {
    background-color: cornflowerblue;
    color: #333;
    text-align: center;
    line-height: 60px;
  }



</style>
